package org.zxp.onedoteight.intf;

/**
 * @program: effectiveJava
 * @description: ${description}
 * @author: X-Pacific zhang
 * @create: 2019-05-06 19:13
 **/
public class Test {
    @org.junit.Test
    public void test(){
        MyInterface.print();
        MyInterface myInterfaceImpl = new MyInterface() {
            @Override
            public void print3() {
                System.out.println("我是实现方法");
            }

            @Override
            public void print4() {

            }
        };

        myInterfaceImpl.print2();
        myInterfaceImpl.print3();
    }
}
